using LiJ.Common.Extention;

namespace LiJ.Framework.Msg.Mos
{
	/// <summary>
	/// 图片消息
	/// </summary>
	public class WxImageRecMsg : WxBaseRecMsg
	{
		/// <summary>
		/// 图片链接
		/// </summary>
		public string PicUrl
		{
			get;
			set;
		}

		/// <summary>
		/// 图片消息媒体id，可以调用多媒体文件下载接口拉取数据。
		/// </summary>
		public string MediaId
		{
			get;
			set;
		}

		/// <summary>
		/// 格式化自身属性部分
		/// </summary>
		protected override void FormatPropertiesFromMsg()
		{
			this.PicUrl = base["PicUrl"];
			this.MediaId = base["MediaId"];
			base.MsgId = base["MsgId"].ToInt64(0);
		}
	}
}
